<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->resource('category','CategoryController');//类别列表

    $router->resource('article','ArticleController');//文章列表

    $router->resource('quotation','QuotationController');//语录管理

    $router->resource('links','LinksController');//友情管理

    $router->resource('action_log','ActionLogController');//访问日志

    $router->resource('users','UserController');//用户管理

    //文章评论
    $router->resource('comments','ArticleCommentController');

    //ip访问
    $router->resource('visit_log','VisitLogController');

    //不开心嘛？点我点我
    $router->resource('happy','HappyController');

    //养眼图集
    $router->resource('atlas','AtlasController');

    //图集类别
    $router->resource('atlas_category','AtlasCategoryController');

    //黑名单
    $router->resource('blacklist','BlacklistController');

    //问题反馈
    $router->resource('feedback','FeedbackController');
});
